objx.fn.removeAt = function(s,e) {
	
	var 
		_obj = this.obj(),
		len = this.size()
	;
	
	var range = objx.indexRange(s,e,len);
	
	switch (this.type()) {
		case "array":
			_obj.splice(range.start, range.end ? (range.end - range.start + 1) : 1);
			break;
		default:
			objx.error("removeAt", "removeAt() doesn't know how to remove items from objects of type " + this.type());
			break;
	}
	
	return this;

};

objx.provides("objx.removeAt");